﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Administer Occasions
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div id="cen" class="Administer">
		<table data-controller="Occasion">
			<thead>
				<%: Html.Partial("_Row",viewData:new ViewDataDictionary(){{"type","header"}} ) %>
				<%: Html.Action("_Add") %>
			</thead>
			<tbody>
				<%
					foreach (var x in z.Controllers.App.db.Occasions.OrderByDescending(x => x.ID)) {
						Response.Write(Html.Partial("_Row", x));
					}
				%>
			</tbody>
		</table>
	</div>
</asp:Content>